# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>

pkgname=perl-data-hexdump
pkgver=0.04
pkgrel=2
pkgdesc="Hexadecial Dumper"
arch=('any')
url="https://search.cpan.org/dist/Data-HexDump"
license=('GPL' 'PerlArtistic')
depends=('perl')
options=('!emptydirs')
source=(https://www.cpan.org/authors/id/N/NE/NEILB/Data-HexDump-$pkgver.tar.gz)
sha256sums=('bc36f404438ac36ad2b9295539227d36f99cd1623f1e347af77c594c40ccbcf8')

build() {
  cd  "$srcdir"/Data-HexDump-$pkgver
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

package() {
  cd  "$srcdir"/Data-HexDump-$pkgver
  make install DESTDIR="$pkgdir"
  find "$pkgdir" -name '.packlist' -delete
  find "$pkgdir" -name '*.pod' -delete
}
